/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dataBase;

import entities.DocumentType;
import entities.Franchise;
import facade.facadeClass;
import org.junit.Test;

/**
 *
 * @author INGENIERIA PREMIER
 */
public class createDatesIntoDataBase {
    
    private facadeClass facade;
    
    @Test
    public void createFranchise(){
        facade = new facadeClass();
        Franchise franchise = new Franchise(new Long(1),"AMEX");
        facade.crear(franchise);
        
        facade = new facadeClass();
        franchise = new Franchise(new Long(2),"VISA");
        facade.crear(franchise);
        
        facade = new facadeClass();
        franchise = new Franchise(new Long(3),"MC");
        facade.crear(franchise);
    }
    @Test
    public void createDocumentTyoe(){
        facade = new facadeClass();
        DocumentType documentType = new DocumentType(new Long(1),"CC");
        facade.crear(documentType);
        
        
        facade = new facadeClass();
        documentType = new DocumentType(new Long(2),"CE");
        facade.crear(documentType);
        
        
        
        
    }
}
